package com.fengbo.self.report.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;

import com.test.core.util.FileUtil;
/**
 * 用于播放swf 文件
 * @author fengbo
 *
 */
public class PlaySwfAction extends DispatchAction {
	/**
	 * 播放文件
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return
	 * @throws Exception
	 */
	public ActionForward playSwf(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		System.out.println("=========================");
		String filePath = this.getServlet().getServletContext().getRealPath("");
		System.out.println(filePath);
		FileUtil.createMkdir(filePath);
		return null;
	}
}
